package org.fpp.sqlparse;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Map;

/**
 * @author pengpeng_fu@infinova.com.cn
 * @date 2023-12-26 13:25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ToString
public class TableInfoDiff {
    private String oldName;
    private String newName;
    private Boolean nameUpdated;
    private String oldComment;
    private String newComment;
    private Boolean commentUpdated;
    private Map<IndexSerializable.OperationWrapper<TableInfo.ColumnInfo>,TableInfo.ColumnInfo> changeColumnMap;
    private Map<IndexSerializable.OperationWrapper<TableInfo.IndexInfo>,TableInfo.IndexInfo> changeIndexMap;
}
